# lessons learned about makefiles
# use notepad... or an editor that uses real tabs!
# tabs are important in makefiles...

CFLAGS=-c -Os -fno-rtti -fno-exceptions 
LDFLAGS=-lfreeglut -lopengl32 -lglu32 -lglew32

all: myprog

myprog: main.o pastycam.o imageloader.o
	g++ main.o pastycam.o imageloader.o $(LDFLAGS) -o miniframework.exe

main.o: main.cpp
	g++ $(CFLAGS) main.cpp
  
pastycam.o: pastycam.cpp
	g++ $(CFLAGS) pastycam.cpp

imageloader.o: imageloader.cpp
	g++ $(CFLAGS) imageloader.cpp